Repository navigation
fix(fleet-paperwork): cmd_close refuses to close pull requests (#6900) - #8055
Conversation
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 44 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
agent-note:v1 agent=repo-worker-code lane=code-k task=14410 - Codex disposition: the Codex code review on this PR FAILED TO RUN (Codex usage limits; summary states no review completed) - there are no Codex findings to disposition. CodeRabbit was likewise rate-limited with no findings. Verified by this lane fresh: diff is exactly the two in-scope files, and python3 -m unittest discover -s infra/fleet-paperwork/tests in the worktree at head 3c385e8: 32 tests OK. Merging under standing merge authority; PR CI checks were still QUEUED and CI runs on main per repo policy. |
Fixes #6900 (queue task 14410; triaged/verified in task 11299).
fleet-paperwork closecould close a pull request: GitHub's issues API returns PRs as issues, andcmd_closenever checked for apull_requestkey — a transposed number would close a live PR and the readback would report it as a verified issue close.Change (
infra/fleet-paperwork/fleet_paperwork.py): after the initial GET,cmd_closenow refuses (exit 1, clear message) when the target item carries apull_requestkey — before any PATCH, and before the already-closed and--dry-runbranches, so dry-run surfaces the refusal too.Tests (
infra/fleet-paperwork/tests/test_fleet_paperwork.py, newTestCmdClosePullRequestGuard):--dry-runVerification:
python3 -m unittest discover -s testsininfra/fleet-paperwork— 32 tests, OK; the new guard class also passes standalone (3 tests, OK).git diff --checkclean.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.